package com.cly.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cly.common.entity.order.dto.OrderDetailDto;
import com.cly.common.entity.item.po.Item;
import com.cly.common.entity.result.Result;

import java.util.List;

public interface ItemService extends IService<Item> {

    List<Item> queryItemsByIds(List<Long> ids);

    Result deductStock(List<OrderDetailDto> orderDetailDtoList);

    void recoverStock(List<OrderDetailDto> orderDetailDtoList);
}
